package com.ztmmm.module.paper.controller;

import com.ztmmm.common.vo.ApiRest;
import com.ztmmm.module.paper.service.IPaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 试卷 前端控制器
 * </p>
 *
 * @author ztm
 * @since 2023-03-23
 */
@RestController
@RequestMapping("/paper")
@CrossOrigin
public class PaperController {
    @Autowired
    private IPaperService paperService;

    @GetMapping("create/{examId}")
    public ApiRest<String> create(@PathVariable String examId){
        return paperService.createPaper(examId);
    }

}
